﻿using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using System.Text;

namespace TCPIPControl.StructHelper
{
    [StructLayoutAttribute(LayoutKind.Sequential, Pack = 4)]
    public struct SamplingConfig
    {
        //public UInt16 Year;
        //public byte Month;
        //public byte Day;
        //public byte Hour;
        //public byte Minute;
        //public byte Second;
        //public UInt16 Millisecond;

        //[MarshalAs(UnmanagedType.ByValArray, SizeConst = 6)]
        //public ChannelVoltage[] ChVols;

        public UInt16 SampleRate;//采样频率
        public UInt32 Lines;//线数
        public byte Average;//计算平均次数
        public byte AverageMod;//平均方式
        public byte WindowFunction;//计算窗函数
    }

    [StructLayoutAttribute(LayoutKind.Sequential, Pack = 4)]
    public struct ChannelVoltage
    {
        public Int16 ChID;
        public float TopVolt;
        public float BotmVolt;
    }
}
